package com.kgcx.organization.domain;

import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_organization_driver_msg")
@ApiModel(value = "司机消息")
public class DriverMsg extends BaseDomain {

    public static final Integer UNREAD = 1;
    public static final Integer READ = 0;

    /**
     * 司机id
     */
    @ApiModelProperty(required = true, example = "1")
    private Long driverId;

    /**
     * 消息类型id
     */
    @ApiModelProperty(required = true, example = "1")
    private Integer typeId;

    /**
     * 标题
     */
    @ApiModelProperty(required = true, example = "系统将在今天升级，请关注")
    private String title;

    /**
     * 0=未读，1=已读
     */
    @ApiModelProperty(required = true, example = "0")
    private Integer isRead;

    /**
     * 内容
     */
    @ApiModelProperty(required = true, example = "升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！升级啦！")
    private String content;


}